package com.ozo.cloud.common.base.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * OAuth2 授权类型枚举
 *
 * @author qiangesoft
 * @date 2024-06-28
 */
@Getter
@AllArgsConstructor
public enum OAuth2GrantTypeEnum implements BaseEnum {

    PASSWORD("password", "密码模式"),

    AUTHORIZATION_CODE("authorization_code", "授权码模式"),

    IMPLICIT("implicit", "简化模式"),

    CLIENT_CREDENTIALS("client_credentials", "客户端模式"),

    REFRESH_TOKEN("refresh_token", "客户端模式");

    /**
     * 编码
     */
    private final String code;

    /**
     * 描述
     */
    private final String desc;

}
